package com.imooc.testDemo;

/**
 * Created by liyanwei on 2017/10/16.
 */
public class demoJava {
    public static void main(String[] args) {
        String str = "HELLO WORD";

        for (int i=0;i<str.length();i++){
            System.out.print(str.substring(str.length()-i-1,str.length()-i));
        }
    }
}
